package com.wzcl.app.controller;

import com.wzcl.app.dao.model.TaskEvaluateScore;
import com.wzcl.app.model.common.RVO;
import com.wzcl.app.model.vo.SysDictVo;
import com.wzcl.app.service.TaskEvaluateScoreService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author beingven
 * @Description TODO
 * @createTime 2021年01月23日 14:14:00
 */
@RestController
@RequestMapping("/taskEvaluate")
public class TaskEvaluateScoreController {
    @Resource
    private TaskEvaluateScoreService taskEvaluateScoreService;

    @GetMapping("/retrieve/{taskId}")
    public RVO retrieveEvaluateById(@PathVariable Integer taskId) {
        return RVO.success(taskEvaluateScoreService.retrieveEvaluateById(taskId));
    }
}